package com.siwei.mes.mapper;

import com.siwei.mes.common.base.BaseMapper;
import com.siwei.mes.entity.ExperimentItemorder;
import com.siwei.mes.entity.tgl.TglItemorder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 试验台账与小票关系(ExperimentItemorder)表数据库访问层
 *
 * @author linzi
 * @since 2023-12-19 22:36:28
 */
public interface ExperimentItemorderMapper extends BaseMapper<ExperimentItemorder> {
    /**
     * 获取所有
     *
     * @param entity
     * @return
     */
    List<ExperimentItemorder> getList(ExperimentItemorder entity);

    /**
     * 根据id获取
     *
     * @param id
     * @return
     */
    ExperimentItemorder loadById(@Param("id") Long id);

    /**
     * 根据试验台账id获取小票id
     *
     * @param experimentId
     * @return
     */
    List<TglItemorder> selectByExperimentId(@Param("experimentId") Long experimentId);
}
